package com.plusjun.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.plusjun.common.utils.PageUtils;
import com.plusjun.gulimall.product.entity.BrandEntity;
import com.plusjun.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author jiajiajun
 * @email ${email}
 * @date 2020-05-13 18:07:02
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetial(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrand(Long brandId, String name);

    void updateCategory(Long catId, String name);

    /**
     *  查询指定分类的所有品牌信息
     * @param catId
     * @return
     */
    List<BrandEntity> getBrandsById(Long catId);
}

